Customizes the Message Handler (MH) package.
Each user of the MH package is expected to have a $HOME/.mh_profile file in the home directory. This file contains a set of user parameters used by some or all of the MH programs. Each line of the file has the following format:
Profile-Entry: Value
This table describes the profile entry options for the .mh_profile file. Only Path: is required. Each profile entry is stored in either the .mh_profile file or the UserMHDirectory/context file.
Profile Entry and Description | Storage File | Default Value |
---|---|---|
|
mh_profile | None |
|
mh_profile | UserMHDirectory /context |
|
context | inbox |
|
mh_profile | None |
|
mh_profile | None |
|
mh_profile | None |
|
mh_profile | .mh_sequences |
|
context | None |
|
mh_profile | prompter |
|
mh_profile | 0644 |
|
mh_profile | 0711 |
|
mh_profile | None |
|
mh_profile | None |
|
context | None |
|
mh_profile | $LOGNAME |
|
mh_profile | None |
|
context | None |
|
context | None |
|
mh_profile | /usr/mail/$USER |
|
mh_profile | None |
The following profile elements are used whenever an MH program starts another program. You can use the .mh_profile file to select alternate programs.
Profile Element | Path |
---|---|
fileproc: | /usr/bin/refile |
incproc: | /usr/bin/inc |
installproc: | /usr/lib/mh/install-mh |
lproc: | /usr/bin/more |
mailproc: | /usr/bin/mhmail |
mhlproc: | /usr/lib/mh/mhl |
moreproc: | /usr/bin/more |
mshproc: | /usr/bin/msh |
packproc: | /usr/bin/packf |
postproc: | /usr/lib/mh/spost |
rmmproc: | None |
rmfproc: | /usr/bin/rmf |
sendproc: | /usr/bin/send |
showproc: | /usr/bin/more |
whatnowproc: | /usr/bin/whatnow |
whomproc: | /usr/bin/whom |
Variable | Description |
---|---|
$MH | Specifies a profile for an MH program to read. When you start
an MH program, it reads the .mh_profile file by default. Use
the $MH environment variable to specify a different profile.
If the file of the $MH environment variable does not begin with a / (slash), it is presumed to start in the current directory. The / indicates the file is absolute. |
$MHCONTEXT | Specifies a context file that is different from the normal context file specified in the MH profile. If the value of the $MHCONTEXT environment variable is not absolute, it is presumed to start from your MH directory. |
$MAILDROP | Indicates to the inc command the default mail drop. This supersedes the MailDrop: profile entry. |
$SIGNATURE | Specifies your mail signature to the send and post commands. This supersedes the Signature: profile entry. |
$HOME | Specifies your home directory to all MH programs. |
$TERM | Specifies your terminal type to the MH package. In particular, these environment variables tell the scan and mhl commands how to clear your terminal, and give the width and length of your terminal in columns and lines, respectively. |
$editalt | Specifies an alternate message. This is set by the dist and repl commands during edit sessions so you can read the distributed message or the answered message. This message is also available through a link called @ (at sign) in the current directory, if your current directory and the message folder are on the same file system. |
$mhdraft | Specifies the path name of the working draft. |
$mhfolder | Specifies the folder containing the alternate message. This is set by the dist and repl commands during edit sessions, so you can read other messages in the current folder besides the one being distributed. The $mhfolder environment variable is also set by the show, prev, and next commands for use by the mhl command. |
The following example has the mandatory entry for the Path:field. The option -alias aliases is used when both the send and ali commands are started. The aliases file resides in the mail directory. The message protection is set to 600, which means that only the user has permission to read the message files. The signature is set to Dan Carpenter, and the default editor is vi.
Path: Mail
send: -alias aliases
ali: -alias aliases
Msg-Protect: 600
Signature: Dan Carpenter
Editor: /usr/bin/vi
Item | Description |
---|---|
$HOME/.mh_profile | Contains the user profile. |
UserMHDirectory/context | Contains the user context file. |
Folder/.mh_sequences | Contains the public sequences for the folder specified by the Folder variable. |